tch_amount := 1 + (uniformdeviate 2);
sketch_passes := 3;
sketch_segments := 2 + (uniformdeviate 3);
sketch_length := OverlayWidth / 3;
draw topboundary withpen pensquare withcolor lightgray;
naturalizepaths;
\stopuseMPgraphic
\defineoverlay[sketchylines][\useMPgraphic{mp:sketchy}]
\setupTABLE[
configurations.
>
> \setupTABLE[r][1][align=raggedleft]
> \setupTABLE[c][1][width=.1\textwidth]
> \setupTABLE[c][2][width=.33\textwidth]
> \setupTABLE[c][3][width=.37\textwidth]
>
a document that uses ~40 different TABLE configurations, each
with their own special requirements, such as these below, and in
total, perhaps 2000 tables appear in a file, using one of the
configurations.
\setupTABLE[r][1][align=raggedleft]
\setupTABLE[c][1][width=.1\textwidth]
\setupTABLE[c
I have a document that uses ~40 different TABLE configurations, each with their
own special requirements, such as these below, and in total, perhaps 2000
tables appear in a file, using one of the configurations.
\setupTABLE[r][1][align=raggedleft
for some more reading.
> You can do: \setupTABLE[2][3] to select the formatting for row 3 and column 2
> (or the other way around ... always forget). In the worst case, you can
> always do
> ...
> \NC .. \NC[options] ... \NC \NR
>
> Each cell is just a \framed[
On Thu, 25 Jan 2024, Jim wrote:
> The nice thing about your setup above is that it is nice and structured.
> But if a table calls for some row, column or cell to be treated
> differently, I guess I am in for some more reading.
You can do: \setupTABLE[2][3] to select the formatting
vrules don't use tabulate
>> to create the tables.
>> Coincidence? I think not. :-)
> Table which rely on rules to make the content readable have a serious
> problem
> (read Edward Tufte books how you can improve the visual style) but the
> better
> alternative in this c
es.
Below is a example which uses the table like wrapper for natural tables
which makes adding rules and changing the padding around text very
simple because each table cell is a \framed block with all its options.
\starttext
\startsetups[ruledtable]
\setupTABLE [frame=off,align=middle,loffset=.5
)
or the columndistance key (when you have invisible borders).
% Alternative 1:
% \setupTABLE[frame=on,offset=0pt,columndistance=1em]
% Alternative 2:
\setupTABLE [frame=off,offset=0pt,loffset=.5em,roffset=.5em]
\setupTABLE [column] [first] [loffset=0pt]
\setupTABLE [column] [last] [roffset=0pt
Hraban Ramm via ntg-context
wrote:
* If I format a column, e.g. \setupTABLE[c][-1][color=red], body and foot are
formatted, but not the same column in header. I couldn’t find how to format
columns in header.
If you disregard the Wiki page instructions to use \bTH...\eTH then you can
format
orking on the documentation for “natural tables” in my book I stumbled upon
>> a few oddities/problems:
>> ## Addressing cells:
>> * There’s \setupTABLE[header], but not "footer" (or "section"); since we
>> have TABLEhead and TABLEfoot, IMO "head" and
I would be happy about some answers/comments.
Hraban
Am 13.03.23 um 23:26 schrieb Henning Hraban Ramm:
Working on the documentation for “natural tables” in my book I stumbled
upon a few oddities/problems:
## Addressing cells:
* There’s \setupTABLE[header], but not "footer" (o
>
> I think \setupcaption[orientation=90] should work. Did you try different
> locations?
>
> But the problem might be your use of \rotation, since \startplacefloat as
> well as \setupTABLE have options for rotation.
> Try \startplacetable[location=90]
>
> Hraban
> ___
gray.
I have no difficulty achieving the first row, and the black
bottomframe for the last row, but I have been unable to get the last
row sides to be gray. Here is the current setups that I have:
\setupTABLE[frame=off]
\setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold
]}
\stopplacetable
I think \setupcaption[orientation=90] should work. Did you try different
locations?
But the problem might be your use of \rotation, since \startplacefloat
as well as \setupTABLE have options for rotation.
Try \startplacetable[location=90]
Hraban
ll intermediate
> rows have gray.
> I have no difficulty achieving the first row, and the black bottomframe for
> the last row, but I have been unable to get the last row sides to be gray.
> Here is the current setups that I have:
> \setupTABLE[frame=off]
> \setupTABLE[row] [first]
have no difficulty achieving the first row, and the black bottomframe
for the last row, but I have been unable to get the last row sides to be
gray. Here is the current setups that I have:
\setupTABLE[frame=off]
\setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold]
\setupTABLE[row][2
, and the black bottomframe
for the last row, but I have been unable to get the last row sides to be
gray. Here is the current setups that I have:
\setupTABLE[frame=off]
\setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold]
\setupTABLE[row][2][topframe=on]
\setupTABLE[row][2][topframe=off
[1]{\RtH}{\rotate{#1}}
\starttext
\setupTABLE[offset=3pt]
\setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
\bTABLE
\bTABLEhead
\bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH
\bTH\RtH{average speed}\eTH \eTR
You can change the vertical alignment
\setupTABLE inherits from \setupframed which has an orientation option.
So \bTR[orientation=90] on the header row should do it, with the content
specified normally i.e. without using \RtH.
A quick test on one of my tables showed some issues with alignment so you may
need to fix the 'width
\dontleavehmode or \hfill in my \RtH macro to no avail.
> Is it possible?
>
>
> \define[1]{\RtH}{\rotate{#1}}
>
> \starttext
>
> \setupTABLE[offset=3pt]
> \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom]
> \bTABLE
> \bTABLEhead
> \bTR \bTH
Hi!
In my table, I want the header texts to be 90˚ rotated and aligned to
the bottom of their cell. I couldn’t find an option to do that.
Tried \dontleavehmode or \hfill in my \RtH macro to no avail.
Is it possible?
\define[1]{\RtH}{\rotate{#1}}
\starttext
\setupTABLE[offset=3pt
appear anywhere.
* spaceinbetween should insert between rows, but nothing happens.
* splitoffset doesn’t seem to change anything.
* What’s samepage for?
## Addressing cells
* It’s not possible to address single cells with \setupTABLE, or is it?
* There’s \setupTABLE[header], but not "f
rttext
\setupTABLE[c][align=middle]
\setupTABLE[c][odd][width=2em]
\setupTABLE[c][even][width=1mm]
\setupTABLE[r][2][height=1mm]
\setupTABLE[c][1][leftframe=off]
\setupTABLE[c][5][rightframe=off]
\bTABLE
\bTR
\bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD
\eTR
\bTR
\bTD \eTD \bTD \eT
Uschi
>
There are probably better ways, but this seems to give something like what
you look for:
\starttext
\setupTABLE[c][align=middle]
\setupTABLE[c][odd][width=2em]
\setupTABLE[c][even][width=1mm]
\setupTABLE[r][2][height=1mm]
\setupTABLE[c][1][leftframe=off]
\setupTABLE[c][5][rightframe=off]
\bTA
\layoutcolumnwidth is coming from so I just hard-coded a width for now.
Lastly there are neater ways (using \setuptable) to define the table but it's
just an example...
\define[2]\MyChapter{
\bTABLE[frame=off]
\bTR
\bTD[width=4cm] \structureuservariable{author} \eTD
just hard-coded a width for now.
Lastly there are neater ways (using \setuptable) to define the table but it's
just an example...
\define[2]\MyChapter{
\bTABLE[frame=off]
\bTR
\bTD[width=4cm] \structureuservariable{author} \eTD
\bTD \structureuservariable{bio} \eTD
etsetup{#1}{table}{xml:table}
> \stopxmlsetups
>
> \xmlregistersetup{xml:test}
>
> \xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft}
> \xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright}
>
> \xmlmapvalue{colgroupalignvar}{dir: rtl}{righttoleft}
> \xmlmapvalue
mlmapvalue{colgroupalignvar}{dir: ltr}{lefttoright}
\startxmlsetups xml:table:colgroup
\xmlfilter {#1} {/col/command(xml:table:colgroup:col)} % gives errors
%\xmlfilter {#1} {/col/command(xml:table:colgroup:colvar)} % works
\stopxmlsetups
\startxmlsetups xml:table:colgroup:colvar
of the
element inside the colgroup, so I was thinking about something like this :
\xmlmapvalue{colstyle}{dir: rtl}{align=righttolef }
\xmlmapvalue{colstyle}{dir: ltr}{align=lefttoright}
\startxmlsetups xml:table:colgroup:col
\setupTABLE[c][\xmlpos{#1}][\xmlvalue{colstyle}{\xmlatt{#1}{style
Am 30.06.22 um 09:36 schrieb Hans Hagen via ntg-context:
On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote:
They’re also tedious, because you can’t setup rows/columns in advance
(like \setupTABLE) – or did that change?
I'm afraid you're right.
You're joking right? SInce when can one
On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote:
Hi Henning,
On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via
ntg-context wrote:
They’re also tedious, because you can’t setup rows/columns in advance
(like \setupTABLE) – or did that change?
I'm afraid you're
Hi Henning,
On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via ntg-context
wrote:
They’re also tedious, because you can’t setup rows/columns in advance
(like \setupTABLE) – or did that change?
I'm afraid you're right.
Cheers,
Ángel
\setupTABLE) – or did that change?
Hraban
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http
gt; have made these changes as well.
>
> [Also, I hope you are aware that you can use style=\tt, style=\bf per row/
> column/cell with \setupTABLE; that will significantly reduce markup in
> your
> file]
>
> Best,
> Sreeram
_
xample was missing a \bTABLEhead. Moreover, I believe cells
in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. I
have made these changes as well.
[Also, I hope you are aware that you can use style=\tt, style=\bf per row/
column/cell with \setupTABLE; that will significantly reduce ma
,
header=\dimexpr4cm,
height=middle,
bottomspace=\dimexpr0cm,
footer=\dimexpr0.5cm]
\setupheadertexts[\setups{headertext}]
\definehspace[tnumber][0.5em]
\startsetups [headertable]
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups
r a table stored in XML JATS format
> (https://jats.nlm.nih.gov/archiving/) and eventually want to use the
> tag to setup column aligning from the @align attribute, e.g.,
>
> \setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}]
>
> Including \xmlpos{#1} I get dou
e alternative, align, closesymbol, closecommand to get exactly
what you want; the example above will give a somewhat symmetric layout]
More generally, if the text can multi-line, then I think TABLE (with proper
alignment options) might be better-suited:
%%% start example-2
\define\startItemize{
> On 6 Apr 2022, at 12:18, juh+ntg-context--- via ntg-context
> wrote:
>
>
> Hi all,
>
> I include tables via csv files like this
>
> \processdatabasefile[test][test.csv]
>
> I was able to style the tables with this:
>
> \setupTABLE [ split=yes, h
Hi all,
I include tables via csv files like this
\processdatabasefile[test][test.csv]
I was able to style the tables with this:
\setupTABLE [ split=yes, header=repeat, option=stretch,
loffset=.5ex,roffset=.5ex]
\setupTABLE [row] [odd]
[background=color,backgroundcolor=hs-hellblau
Hello All,
I'm trying to render a table stored in XML JATS format
(https://jats.nlm.nih.gov/archiving/) and eventually want to use the
tag to setup column aligning from the @align attribute, e.g.,
\setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}]
Including \xmlpos{#1} I get
ult}]
\setvariables
[assignments]
[set={\setups[assignments:set]}]
\startsetups assignments:set
\writestatus{variables}{assignments:set is being called..}
\startalignment[middle]
\bTABLE[frame=off]
\setupTABLE[c][1][align=flushleft,style=bold,distance=2cm]
\setupTABLE[c][2][al
or extreme tables are the better choice for this
table layout but it can be improved.
1. Keep the layout/settings local.
To ensure the \setupTABLE settings don't affect other tables you can
either put \start and \stop at the begin and end of the table, e.g.
\start
\setupTABLE
is \bTABLE \eTABLE.
It gives you all kind of control over layout, dimensions, frames on and off etc.
\setupTABLE[c][1][leftframe=off,width=40mm]
\setupTABLE[c][2][rightframe=off, width=60mm]
\setupTABLE[c][each][align={lohi,center}]
\bTABLE
\bTR
\bTD {\bf Eons}\eTD \bTD {\bf Eras
I would suggest not to use \starttable at all.
To me the most suitable table environment for such a table is \bTABLE \eTABLE.
It gives you all kind of control over layout, dimensions, frames on and off etc.
\setupTABLE[c][1][leftframe=off,width=40mm]
\setupTABLE[c][2][rightframe=off, width=60mm
t;
> Any ideas ?
>
> I know that natural tables offer more in this regard, but those seem not to
> be so well suited for parallel texts.
>
> I switched to natural tables a long time ago and that's how I would do it:
>
> \starttext
> \bTABLE[width=8cm, frame=of
offer more in this regard, but those seem not to be
so well suited for parallel texts.
I switched to natural tables a long time ago and that's how I would do it:
\starttext
\bTABLE[width=8cm, frame=off]
\setupTABLE[c][1][roffset=0.5em]
\setupTABLE[c][2][loffset=0.5em]
\bTR
\bTD[nc=2,
the cells at the top aren’t merged.
>
> Any ideas ?
>
> I know that natural tables offer more in this regard, but those seem not to
> be so well suited for parallel texts.
I switched to natural tables a long time ago and that's how I would do it:
\starttext
\bTABLE[width=8cm
\startsetups [alexandre:1]
\setupTABLE [start] [frame=off]
\setupTABLE [c] [1] [width=.3\textwidth]
\setupTABLE [c] [2] [width=.6\textwidth]
\stopsetups
\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:1]
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something
Dear all,
I'm trying something out in LMTX, which is to combine itemize with a table.
Application could be to put a question and the answer in the next column.
A minimal example would be:
\starttext
\startitemize [a] [right=),stopper=]
\bTABLE[frame=off]
\setupTABLE[column][1] [width
Am 19.11.21 um 08:48 schrieb juh via ntg-context:
And in https://wiki.contextgarden.net/Command/setupTABLE the parameter
width is not mentioned at all.
Because it inherits from \setupframed where all these parameters are
declared.
I would like to improve the wiki, any hint where a hint
Am Thu, Nov 18, 2021 at 07:08:12PM +0100 schrieb Hans Hagen:
> maybe something
>
> \setupTABLE[c][1][width=4cm]
> \setupTABLE[c][3][width=4cm]
I discovered that
\startcell[align=flushleft,width=4cm] A very long line that breaks \stopcell
does the same trick.
While the par
natural tables
I found this code on the wiki
% mode=mkiv
\setuppapersize[A5]
\bTABLE
\setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle]
\bTABLEhead
\bTR
\bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH
\bTH Same-Width Suffix \eTH \bTH Varying-Width Suf
ables
I found this code on the wiki
% mode=mkiv
\setuppapersize[A5]
\bTABLE
\setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle]
\bTABLEhead
\bTR
\bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH
\bTH Same-Width Suffix \eTH \bTH Varying-Width Suffix \eTH
\eTR
\
ds and turn the frame off and get every odd row in
> > all my tables will have that color for the background.
> >
> > == Example
>
> > \definecolor[grayback][r=.8,g=.8,b=.8]
> > \setupTABL
\definecolor[grayback][r=.8,g=.8,b=.8]
\setupTABLE[background=color,frame=off]
\setupTABLE[row][odd][backgroundcolor=grayback]
== End of Example =
Can I get this same effect with extreme tables?
My first try
=.8,g=.8,b=.8]
\setupTABLE[background=color,frame=off]
\setupTABLE[row][odd][backgroundcolor=grayback]
== End of Example =
Can I get this same effect with extreme tables?
My first try with extreme tables looked like
attached a mwe where you can use --mode=title to invoke the
broken columns.
Any advice on how to place text above the columns environment would be
gratefully received.
With kind regards,
Michael
\startsetups[tablesettings]
\setupTABLE[c][1][style=\tfc, color=darkred, align=left]
\setupTABLE[c
Hi all,
I have this sample:
\usemodule[database]
\setuppapersize [A6]
\setupTABLE
[split=yes,
header=repeat]
\defineseparatedlist
[test]
[separator={;}, % tab
before=\bTABLE,after=\eTABLE,
first=\bTR,last=\eTR,
left=\bTD,right=\eTD]
\starttext
\processdatabasefile[test
Hi,
Consider the following MWE:
\starttext
\setupTABLE[
rulethickness=5pt,
framecolor=white, %red,
background=color,
backgroundcolor=gray,
frame=off]
\setupTABLE[1][2][foregroundcolor=white, topframe=on]
\setupTABLE[r][2][topframe=on]
\bTABLE[setups=table:color]
\bTR \bTD One
for those columns that I
> had set specific width. See the example below -
>
> Maybe I am missing a trick or two - or this indeed is the desired
> behavior? Thank you very much.
>
> \setupTABLE[r][each][height=0.5cm,frame=on]
> \setupTABLE[c][each][width=0.6cm]
> \setupTABLE[
his indeed is the desired
behavior? Thank you very much.
\setupTABLE[r][each][height=0.5cm,frame=on]
\setupTABLE[c][each][width=0.6cm]
\setupTABLE[r][1][height=0cm,topframe=off]
\setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE
... \eTABLE \setupTABLE[r][each][height=1.3c
very much.
\setupTABLE[r][each][height=0.5cm,frame=on]
\setupTABLE[c][each][width=0.6cm]
\setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm]
\setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE
\setupTABLE[r][each][height=1.3cm,topframe=on]
\setupTABLE[c][each][width=1.7cm]
\setupTABL
]
\setupbodyfont[dejavu,10pt,ss]
%
setups and example thanks to Wolfgang Schuster
\startsetups[tablesettings]
\setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex]
\setupTABLE[row][first][background="">
Alain Delmotte schrieb am 22.02.2021 um 19:58:
Hi!
I have the following program:
\definecolor [tableheader] [x=00ADEF]
\setupbodyfont[dejavu,10pt,ss]
% setups and example thanks to Wolfgang Schuster
\startsetups[tablesettings]
\setupTABLE[start][framecolor=gray
Hi!
I have the following program:
\definecolor [tableheader] [x=00ADEF]
\setupbodyfont[dejavu,10pt,ss]
% setups and example thanks to Wolfgang Schuster
\startsetups[tablesettings]
\setupTABLE[start][framecolor=gray
at the attachment for a example.
Wolfgang
\setupbodyfont[dejavu,10pt,ss]
\starttext
\definecolor [tableheader] [x=00ADEF]
\startsetups[tablesettings]
\setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex]
%\setupTABLE[header][background=color,backgroundcolor=tableheader
={footer,middle}]
\setupwhitespace[quarterline]
\setupbodyfont[pagella,9pt]
\definepapersize[digest][width=5.5in,height=8.5in]
\setuppapersize[digest]
\starttext
\startplacetable[location=force,title={Stun Levels}]
\definecolor[back-3][r=.8,g=.8,b=.8]
\setupTABLE[background=color,frame=off,framecolor
On Sat, 5 Dec 2020, T. Kurt Bond wrote:
> If I understand correctly, \setupTABLE applies to each table after the
> \setupTABLE, correct? If so, can you make it only apply to one table?
If you really need it for one table:
\bTABLE
\setupTABLE[...][...]
\setupTABLE[...][...]
\bTR ..
Thanks for the help!
On Sat, Dec 5, 2020 at 10:21 PM Jairo A. del Rio
wrote:
> Hi,
> You could enclose your table and setup using \bgroup and \egroup
>
> \bgroup
> \setupTABLE ...
> \bTABLE ... \eTABLE
> \egroup
>
> \begingroup ... \endgroup also works, although I ha
Hi,
You could enclose your table and setup using \bgroup and \egroup
\bgroup
\setupTABLE ...
\bTABLE ... \eTABLE
\egroup
\begingroup ... \endgroup also works, although I have to admit I'm not
aware of the differences between both.
Regards,
Jairo :)
El sáb., 5 de dic. de 2020 10:01 p. m., T
If I understand correctly, \setupTABLE applies to each table after the
\setupTABLE, correct? If so, can you make it only apply to one table?
--
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
}
\def\TBLline#1{\bTR\processcommalist[#1]\TBLentry}
\def\dostartCSV#1\stopCSV{%
\bTABLE
\ProcessLines\TBLline{#1}%
\eTABLE
\egroup
}
% some additional settings for the table may be made as well
\setupTABLE[c][2][style=\tt]
\setupTABLE[c][3][align=middle]
\setupTABLE[r][1][style=bold
On Wed, Nov 04 2020, Peter Münster wrote:
> I would like to specify the column-width of the first column to 5mm:
>
> \starttext
> [...]
> \stoptext
Sorry, that wasn't really a minimal example.
Here a better file, to show what I'm looking for:
\setupTABLE[textwidth=10cm,
Hi,
I would like to specify the column-width of the first column to 5mm:
--8<---cut here---start->8---
\starttext
\setupTABLE[textwidth=99mm, option=stretch]
\setupTABLE[c][each][align={lohi, middle}]
\setupTABLE[c][1][height=5mm, style=\tfxx]
\framed
Am 30.09.2020 um 22:03 schrieb Wolfgang Schuster:
Denis Maier schrieb am 30.09.2020 um 21:54:
Hi,
spaceinbetween seems to have no effect in this example:
===
\setupTABLE [spaceinbetween=25pt,split=yes]
A few options need [start] when you set them before \bTABLE.
\setupTABLE
Denis Maier schrieb am 30.09.2020 um 21:54:
Hi,
spaceinbetween seems to have no effect in this example:
===
\setupTABLE [spaceinbetween=25pt,split=yes]
A few options need [start] when you set them before \bTABLE.
\setupTABLE [split=yes]
\setupTABLE [start] [spaceinbetween=25pt
Hi,
spaceinbetween seems to have no effect in this example:
===
\setupTABLE [spaceinbetween=25pt,split=yes]
\starttext
\bTABLE
\dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR}
\eTABLE
\stoptext
==
What am I missing?
Best,
Denis
can get this behavior using any of table mechanism. The wiki has an example
when using the (now deprecated) TaBlE macros
https://wiki.contextgarden.net/Table#Booktabs
The same effect is rather easy to achieve when using natural tables as well.
\startsetups booktabs
\setupTABLE[each][each
entpicture to OverlayBox;
\stopuseMPgraphic
\defineoverlay[booktabs_bottom] [\uniqueMPgraphic{booktabs_bottom}]
\installbottomframerenderer{booktabs}{\uniqueMPgraphic{booktabs_bottom}}
\startsetups booktabs
\setupTABLE[each][each][frame=off, rulethickness=1.2bp]
\setupTABLE[row][first][topframe=
On Tue, Sep 22 2020, Aditya Mahajan wrote:
> The same effect is rather easy to achieve when using natural tables as
> well.
But it fails, when there is only one data-row... :(
\startsetups booktabs
\setupTABLE[each][each][frame=off]
\setupTABLE[row][first][topframe=on,rulethickness
of table mechanism. The wiki has an example
when using the (now deprecated) TaBlE macros
https://wiki.contextgarden.net/Table#Booktabs
The same effect is rather easy to achieve when using natural tables as well.
\startsetups booktabs
\setupTABLE[each][each][frame=off]
\setupTABLE[row][first]
ent
• \em, \bf, \cap,
• \startitemize, \startitem, \starthead,
• \placefigure, \externalfigure,
• \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE
• \index, \completeindex
• \setuplayout, \setupfootertexts et \setupheadertexts
• \definedescription, \defineenumeration
• \at, \in
Anyway, t
to fill one page with several
tables.
Here’s a quite minimal example:
\setupTABLE[c][each][width=2cm]
\starttext
\framed[offset=overlay,width=\textwidth]{%
\vbox{\bTABLE
\dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\eTR}
\eTABLE}%
\hskip1cm%
\vbox{\bTABLE
\dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\bTD z
minimal example:
\setupTABLE[c][each][width=2cm]
\starttext
\framed[offset=overlay,width=\textwidth]{%
\vbox{\bTABLE
\dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\eTR}
\eTABLE}%
\hskip1cm%
\vbox{\bTABLE
\dorecurse{10}{\bTR\bTD x \eTD\bTD y \eTD\bTD z \eTD\eTR}
\eTABLE}%
}
\stoptext
I’m trying to get
solution:
\starttexdefinition TableCard #1
\setupTABLE [start]
[frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]
\setupTABLE [row] [1] [orientation=180]
%\setupTABLE [start] [leftframe=on,rightframe=on]
%\setupTABLE [row] [1] [topframe=on]
%\setupTABLE
\setupTABLE [start]
[frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]
\setupTABLE [row] [1] [orientation=180]
%\setupTABLE [start] [leftframe=on,rightframe=on]
%\setupTABLE [row] [1] [topframe=on]
%\setupTABLE [row] [2] [bottomframe=on]
\bTABLE
\bTR
doing something wrong?
Best wishes,
Tomáš
\starttext
\setupTABLE[c][2][alignmentcharacter={text->,}, aligncharacter=yes,
align={lohi,middle}]
\bTABLE
\bTR\bTD Line \#1 \eTD \bTD39 \eTD \eTR
\bTR\bTD Line \#2 \eTD \bTD 42,185 \eTD\eTR
%\bTR\bTD Line \#2a \eTD \bTD 55 550
o typeset the Ifrith text is not broken into lines correctly
>> i.e. it is leaping into the cell reserved for the German text. — How to
>> correct this behaviour?
>
> Either use:
>
> \setupTABLE[column][2][align={r2l,right},width=42mm]
>
> or:
>
> \setupTABLE
ken into lines correctly
> i.e. it is leaping into the cell reserved for the German text. — How to
> correct this behaviour?
Either use:
\setupTABLE[column][2][align={r2l,right},width=42mm]
or:
\setupTABLE[column][2][align={r2l,verytolerant,stretch},width=42mm]
since a bare
used fixed values, in the actual document that would not be
good - too
many different cells.
I am trying a further approach using MetaPost and OverlayBox. Seems possible
(line
wrapping also an issue), but quite involved...
Thanks, Martin
New MWS:
\setupTABLE[c][1][width=20mm]
\setupTABLE[c
-context | current version: 2019.05.18 10:42
PDF of my output is attached.
MWE:
\starttext
\setupTABLE[c][1][width=7mm]
\setupTABLE[c][2][width=30mm]
\setupTABLE[r][each][align={lohi,middle},height= 50mm]
\bTABLE
\bTR
\bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD
\bTD
Hi Willi,
thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE
statement.
Now I tried adding it into the particular cell -- again no effect even if I add
"middle".
\bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD
I suspect the rotate
;
> What can I do to fix the problem? Thanks for suggestions.
>
> Martin
>
> using: mtx-context | current version: 2019.05.18 10:42
> PDF of my output is attached.
>
> MWE:
>
> \starttext
> \setupTABLE[c][1][width=7mm]
> \setupTABLE[c][2][width=30mm]
&
of my output is attached.
MWE:
\starttext
\setupTABLE[c][1][width=7mm]
\setupTABLE[c][2][width=30mm]
\setupTABLE[r][each][align={lohi,middle},height= 50mm]
\bTABLE
\bTR
\bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD
\bTD blah \eTD
\eTR
\eTABLE
\stoptext
rotate-test.pdf
...
l.114 \eTABLE
My table is:
\setupTABLE[header][each][background=color,backgroundcolor=white,
width=broad]
\bTABLE[split=repeat,option={stretch}, align={flushright}, frame=off]
\bTABLEhead[align=flushright]
\bTR
\bTH [offset=none, align={flushleft},
e_stop ...l_ntb_table_get_max_width
\ifautoTBLspread
\tabl_ntb...
\eTABLE ...oveunwantedspaces \tabl_ntb_table_stop
\stopTBLprocessing \fi
\po...
l.114 \eTABLE
My table is:
\setupTABLE[header][each][background
headers based on information I get from the XML:
\startxmlsetups xml:prozess
\mainlanguage[de]
\setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date]
{\bTABLE
\setupTABLE[frame=off]
\setupTABLE[offset=1mm]
\setupTABLE[c][1][align=right, width=14cm]
\setupTABLE[c
On 2/20/2019 10:51 AM, Procházka Lukáš Ing. wrote:
Hello Hans,
On Wed, 20 Feb 2019 09:15:40 +0100, Hans Hagen wrote:
as column setup for TABLEs by "\setupTABLE[c][1][width=1in]" is handy
and is used frequently, would it be possible to provide identical
mechanism for xtab
1 - 100 of 924 matches
Mail list logo